package com.example.demo.service;

/**
 * @author mandu
 * @version 1.0
 * @date 2019/6/10 10:38
 */
import com.example.demo.bean.Commodity;
import org.springframework.data.domain.Page;
import java.util.List;

public interface CommodityService {

    long count();

    Commodity save(Commodity commodity);

    void delete(Commodity commodity);

    Iterable<Commodity> getAll();

    List<Commodity> getByName(String name);

    Page<Commodity> pageQuery(Integer pageNo, Integer pageSize, String kw);

}